{% extends 'base.html' %}s
{% block title %} 注册 {% endblock %}
{% block head %}
    <script src="{% static 'jquery/jquery-3.7.1.min.js' %}"></script>
    <script src="{% static 'js/register.js' %}"></script>
{% endblock %}
{% block main %}
    <h2>请注册</h2>
   <form action="" method="post">
        {% csrf_token %}
        <div class="mb-3">
              <label class="mb-1">用户名</label>
              <input type="text" name="username" class="form-control" placeholder="用户名">
          </div>
          <div class="mb-3">
              <label class="mb-1">邮箱</label>
              <input type="email" name="email" class="form-control"   placeholder="邮箱">
          </div>
          <div class="mb-3">
              <label class="mb-1">验证码</label>
              <div class="input-group">
                  <input type="text" name="captcha" class="form-control" placeholder="验证码">
                  <button class="btn btn-outline-secondary" type="button" id="captcha-btn">获取验证码</button>
              </div>
          </div>
          <div class="mb-3">
              <label class="mb-1">密码</label>
              <input type="password" name="password" class="form-control" placeholder="密码">
          </div>
          <div class="mb-3">
              <button class="btn btn-primary w-100">立即登录</button>
          </div>
      </form>
{% endblock %}